using System;
using Whitemice.MOGI;

namespace Whitemice.MOGI.ZOGI
{
	public class Project : Whitemice.MOGI.ZOGI.Document, IProject
	{
		public Project(IServer server, Payload payload) 
			: base(server, payload)
		{
		}
		
		public override string Number
		{ 
			get { return payload.GetStringForKey("number"); }
			set { payload.SetValueForKey("number", value); }
		}
		
		/// \todo: Implement
		public DateTime Start 
		{ 
			get { return DateTime.Now; }
		}
		
		/// \todo: Implement
		public DateTime End 
		{ 
			get { return DateTime.Now; }
		}
		
		public string Description 
		{ 
			get { return payload.GetStringForKey("name"); }
			set { payload.SetValueForKey("name", value); }
		}
	}
}